package com.abc.cloud.dao;

import com.abc.cloud.entity.UserEntity;
import com.abc.cloud.entity.UserNoticeEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 用户通知表
 * 
 * @author LiJunXi
 * @email 2770063826@qq.com
 * @date 2023-11-29 13:19:41
 */
@Mapper
public interface UserNoticeDao extends BaseMapper<UserNoticeEntity> {

    void saveAllUserNotice(@Param("list") List<UserEntity> userEntityList,
                           @Param("noticeId") Long id,
                           @Param("isRead") int i);

    void saveNotice(@Param("userId") Long id,
                    @Param("noticeId") Long id1,
                    @Param("isRead") int i);
}
